package com.bustle.commons;

import com.bustle.commons.http.JsonToTypeConverter;

public class JsonParser implements StringParser
{
  @Override
  public <Type> Type parse(Class<Type> aClass, String aString)
  {
    Converter<String, Type> stringToTypeConverter = new JsonToTypeConverter<>(aClass);
    return stringToTypeConverter.convert(aString);
  }
}
